package com.kuang.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @program: kuangshen-es-api
 * @description:
 * @author: 陈恩涛
 * @create: 2021-05-27 10:37
 **/
public interface ContentService {

    /**
     * 解析数据放入ES索引
     * @param keyword
     * @return
     */
    Boolean parseContent(String keyword) throws IOException;

    List<Map<String, Object>> searchPage(String keyword, int pageNum, int pageSize) throws IOException;

    List<Map<String, Object>> searchPageHighlight(String keyword, int pageNum, int pageSize) throws IOException;
}
